Adam K Dean

Posts tagged with json

Force JSON with WebAPI

Published 18 September 2013 in archive with tags webapi , json , api , csharp Sometimes when you call a WebAPI through the browser, you'll be served XML. This may make it easier to read, but it's really not helping us when all we really want is JSON. Putting the following snippet into the end of Application_Start() in Global.asax.cs will force your WebAPI application to always send JSON. Continue reading …

Easily bypass Same Origin Policy

Published 3 July 2013 in archive with tags jquery , javascript , ajax , json If you've ever tried to use AJAX or an iFrame to load another website in javascript and been unable to, it will have been because of the Same Origin Policy. To quote Wikipedia: Continue reading …



Newer Page 1 of 1 Older